package com.genauth.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_user_info")
public class UserBean {
    @TableId
    private String userId;
    private String userName;
    private String userRealname;
    private String userPassword;

    @TableField(exist = false)
    private String userRoles; //用户所属角色ID
    @TableField(exist = false)
    private String userControllercode;//用户拥有的ControllerCode 用"|"隔开
    @TableField(exist = false)
    private String userMenuIds; // 用户拥有的菜单 用"|"隔开 这个应该不需要了。菜单ID不应该暴露给前端
    @TableField(exist = false)
    private String userMenuCodes; // 用户拥有的菜单，用"|"隔开
    @TableField(exist = false)
    private String userPageAuths; // 用户拥有的页面控件权限，用"|"隔开

    public String getUserMenuCodes() {
        return userMenuCodes;
    }

    public void setUserMenuCodes(String userMenuCodes) {
        this.userMenuCodes = userMenuCodes;
    }

    public String getUserPageAuths() {
        return userPageAuths;
    }

    public void setUserPageAuths(String userPageAuths) {
        this.userPageAuths = userPageAuths;
    }

    public String getUserControllercode() {
        return userControllercode;
    }

    public void setUserControllercode(String userControllercode) {
        this.userControllercode = userControllercode;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRealname() {
        return userRealname;
    }

    public void setUserRealname(String userRealname) {
        this.userRealname = userRealname;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

	public String getUserRoles() {
		return userRoles;
	}

	public void setUserRoles(String userRoles) {
		this.userRoles = userRoles;
	}

    public String getUserMenuIds() {
        return userMenuIds;
    }

    public void setUserMenuIds(String userMenuIds) {
        this.userMenuIds = userMenuIds;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userRealname='" + userRealname + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userRoles='" + userRoles + '\'' +
                ", userControllercode='" + userControllercode + '\'' +
                ", userMenuIds='" + userMenuIds + '\'' +
                ", userMenuCodes='" + userMenuCodes + '\'' +
                ", userPageAuths='" + userPageAuths + '\'' +
                '}';
    }
}
